#!/bin/bash
set -e
set -x
MYDIR="${0%/*}"
cd "$MYDIR/.."
source "recipes/common.sh"


# RECIPE START libgcrypt
# depends: libgpg-error
# depends: cross-pkg-config

reset_mtime libgcrypt libgcrypt/configure.ac
mkdir -p build/libgcrypt
cd build/libgcrypt
../../libgcrypt/configure \
	${CONFIGURE_ARGS} \
	--with-sysroot="$stage" \
	--with-libgpg-error-prefix="${stage}${prefix}" \
	${AUTOCRAP_KLUDGE}

cd ../..
make_build build/libgcrypt

# RECIPE END libgcrypt
